<pre class="docs-method-signature"><code>g.scale.linear(domain, range, value)</code></pre>
<p>Return the <code>value</code> from the <code>domain</code> interval linearly scaled to the <code>range</code> interval.</p>

<p>Both <code>domain</code> and <code>range</code> intervals must be specified as arrays with two numbers specifying start and end of the interval.</p>
